/**
 * Copyright (c) 2012-2014, Yang Yang <cntototo@gmail.com>
 *
 * This software may be distributed under the terms of the New BSD License.
 * See README for more details.
 */

#ifndef LINUX_SPEC_H
#define LINUX_SPEC_H

#include "def.h"

int linux_is_iface_up(int sock, const char *ifname);

enum wfs_internal_err linux_get_hwaddr(int sock, const char *ifname, u8 *addr);

enum wfs_internal_err
linux_set_hwaddr(int sock, const char *ifname, const u8 *addr);

enum wfs_internal_err linux_turn_iface_down(int sock, const char *ifname);

enum wfs_internal_err linux_turn_iface_up(int sock, const char *ifname);

#endif /* LINUX_SPEC_H */
